﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;

namespace Api.Hub.MessageHandlers
{
    public class AddCustomHeader : DelegatingHandler
    {
        protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, System.Threading.CancellationToken cancellationToken)
        {
            //request.Method = HttpMethod.Post;
            request.Headers.Add(this.GetType().FullName, this.GetType().FullName);
            return base.SendAsync(request, cancellationToken);
        }
    }
}
